package sort.record;


/**
 * @author masaru-gotou
 *
 */
public class FixedRecordsFactory implements RecordsFactory {
	private static RecordsFactory instance = new FixedRecordsFactory();
	
	private FixedRecordsFactory() {}
	
	public static RecordsFactory getInstance() {
		return instance;
	}
	
	/* (�� Javadoc)
	 * @see sort.RecordsFactory#create()
	 */
	public Records create() {
		Records recs = new Records();
		recs.add(new Record(8,"test8"));
		recs.add(new Record(4,"test4"));
		recs.add(new Record(3,"test3"));
		recs.add(new Record(7,"test7"));
		recs.add(new Record(6,"test6"));
		recs.add(new Record(5,"test5"));
		recs.add(new Record(2,"test2"));
		recs.add(new Record(1,"test1"));

		return recs;
	}

	public Records create(int num) {
		return create();
	}
}
